home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / email / MIMEText.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  1.2 KB  |  27 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. '''Class representing text/* type MIME documents.'''
  5. from email.MIMENonMultipart import MIMENonMultipart
  6. from email.Encoders import encode_7or8bit
  7.  
  8. class MIMEText(MIMENonMultipart):
  9.     '''Class for generating text/* type MIME documents.'''
  10.     
  11.     def __init__(self, _text, _subtype = 'plain', _charset = 'us-ascii'):
  12.         '''Create a text/* type MIME document.
  13.  
  14.         _text is the string for this message object.
  15.  
  16.         _subtype is the MIME sub content type, defaulting to "plain".
  17.  
  18.         _charset is the character set parameter added to the Content-Type
  19.         header.  This defaults to "us-ascii".  Note that as a side-effect, the
  20.         Content-Transfer-Encoding header will also be set.
  21.         '''
  22.         MIMENonMultipart.__init__(self, 'text', _subtype, **{
  23.             'charset': _charset })
  24.         self.set_payload(_text, _charset)
  25.  
  26.  
  27.